<template>
  <div>
    <div class="detaiPage">
      <div class="headerline">
        <div class="header bannercenter">
          <div class="header-time left">
            <span class="year"><em> {{ parseTime(item.createDate, '{y}') }}</em></span>
            <span class="day">{{ parseTime(item.createDate, '{m}/{d}') }}</span>
          </div>
          <div class="headtitle clearfix">
            <h1><span class="title">{{ item.title }}</span></h1>
          </div>
        </div>
      </div>
      <div class="main">
        <div class="play">
          <video width="100%" height="100%" controls controlslist="nodownload">
            <source :src="item.videoUrl" type="video/mp4">
            Your browser does not support the video tag.
          </video>
        </div>
        <div class="content" v-html="item.content">
        </div>
      </div>
    </div>
  </div>

</template>

<script>
import { getExperience } from '@/api/school/experience/experience'

export default {
  name: 'ExperienceDetaiPage',
  data () {
    return {
      item: null
    }
  },
  created () {
    this.getExperienceDetail()
  },
  methods: {
    getExperienceDetail () {
      let id = this.$route.query.id
      this.loading = true
      getExperience(id).then(response => {
        this.item = response.data
        this.loading = false
      })
    }
  }
}
</script>


